public abstract class Component {
    public abstract double cost();
}